package org.jypj.dev.model;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import com.google.gson.Gson;

/**
 * 交路表
 *
 * @author chenyu
 */
public class Road implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    private String id; //主键
    private String num; //交路编号
    private String name; //交路名称
    private String startTime; //开始时间
    private String endTime; //结束时间
    private String pid;
    private String tempTrain;//是否为临客
    private String tName;//表格中的名称
    private String gsm1;
    private String gsm2;

    private String loginId;//用户出乘提示查看

    private List<Train> trains;

    private Map<String, List<User>> dateUserWorks = new LinkedHashMap<>();//用户派班日期的集合

    private String trainStr;//车次
    private String userStr;//派班用户
    private String trainNumStr;//派班车组号

    public Road() {
    }

    public Road(String id, String name, String pid) {
        this.id = id;
        this.name = name;
        this.pid = pid;
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getNum() {
        return this.num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStartTime() {
        return this.startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return this.endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getTempTrain() {
        return tempTrain;
    }

    public void setTempTrain(String tempTrain) {
        this.tempTrain = tempTrain;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public List<Train> getTrains() {
        return trains;
    }

    public void setTrains(List<Train> trains) {
        this.trains = trains;
    }

    public String gettName() {
        return tName;
    }

    public void settName(String tName) {
        this.tName = tName;
    }

    public Map<String, List<User>> getDateUserWorks() {
        return dateUserWorks;
    }

    public void setDateUserWorks(Map<String, List<User>> dateUserWorks) {
        this.dateUserWorks = dateUserWorks;
    }

    public String getLoginId() {
        return loginId;
    }

    public void setLoginId(String loginId) {
        this.loginId = loginId;
    }

    public String getGsm1() {
        return gsm1;
    }

    public void setGsm1(String gsm1) {
        this.gsm1 = gsm1;
    }

    public String getGsm2() {
        return gsm2;
    }

    public void setGsm2(String gsm2) {
        this.gsm2 = gsm2;
    }

    public String getTrainStr() {
        return trainStr;
    }

    public void setTrainStr(String trainStr) {
        this.trainStr = trainStr;
    }

    public String getUserStr() {
        return userStr;
    }

    public void setUserStr(String userStr) {
        this.userStr = userStr;
    }

    public String getTrainNumStr() {
        return trainNumStr;
    }

    public void setTrainNumStr(String trainNumStr) {
        this.trainNumStr = trainNumStr;
    }

    @Override
    public String toString() {
        Gson gson = new Gson();
        return gson.toJson(this);
    }

}